package com.zrgj.manager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zrgj.domain.ProductInfo;
import com.zrgj.domain.ProductSales;
import com.zrgj.manager.mapper.ProductSalesMapper;
import com.zrgj.manager.service.IProductSalesService;
import org.springframework.stereotype.Component;

import java.util.List;

@Service
@Component
public class ProductSalesServiceImpl implements IProductSalesService {
    private ProductSalesMapper productSalesMapper;

    public ProductSalesServiceImpl(ProductSalesMapper productSalesMapper) {
        this.productSalesMapper = productSalesMapper;
    }

    @Override
    public List<ProductInfo> select(ProductSales productSales) {
        return productSalesMapper.select(productSales);
    }
}
